@import "./base.less";

#main {
    width: auto;
}

.header {
    text-align: center;
    height: 7%;
    display: flex;

    .left_menu {
        flex: 0.3;
        line-height: 45px;
    }

    h1 {
        flex: 0.4;
        margin-top: 5px !important;
    }

    .right_menu {
        flex: 0.3;
        line-height: 45px;
        display: flex;
        color: #173A6F;

        .times {
            flex: 0.8;
            text-align: right;
        }

        .user {
            flex: 0.2;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 13px;
            text-align: center;
            font-weight: bold;

            #avatar {
                // opacity: 0;
                width: 100%;
                height: 100%;
                transition: opacity 1s ease;
                text-overflow: ellipsis;
                overflow: hidden;
                padding: 0 5px 0 5px;
            }
        }
    }
}

.header:hover {
    cursor: pointer;

    // .right_menu {
    //     .user {
    //         #avatar {
    //             opacity: 1;
    //         }
    //     }
    // }
}

.monitor {
    position: relative;
    height: 92%;

    .monitor_left {
        padding: 3px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        div {
            .water_polo {
                flex: 0.7;
                text-align: center;
                display: flex;
                flex-direction: column;
                justify-content: space-around;
                height: 100%;

                .left {
                    flex: 1;
                }

                .right {
                    position: relative;
                    flex: 1;
                    display: flex;
                    color: @bor_title_color1;
                    font-weight: bold;

                    .text {
                        position: absolute;
                        bottom: 10px;
                        display: flex;
                        width: 100%;

                        div {
                            width: 50%;
                        }
                    }
                }
            }
        }
    }

    .monitor_center {
        padding: 0 !important;
        height: 100%;

        .monitor_map {
            margin: 15px 0 15px 0;
            height: 70%;
            overflow: hidden;
        }

        .monitor_video {
            margin: 5px;
            padding: 25px;
            height: 28%;
            position: relative;

            .videoList {
                margin: 15px 0 0 0;
                width: 100%;
                height: 100%;
                display: flex;
                overflow: hidden;
                position: relative;

                ul {
                    position: relative;
                    display: flex;
                    margin: 10px;
                    justify-content: center;
                    align-items: center;

                    .video {
                        position: relative;
                        margin-left: 10px;
                        padding: 10px;
                        list-style: none;
                        width: 200px;
                        height: 100%;

                        i {
                            position: absolute;
                            color: @bor_title_color1;
                            font-size: 30px;
                            top: 40%;
                            left: 50%;
                            transform: translate(-50%, -50%) rotate(90deg);
                        }

                        img {
                            width: 100%;
                            height: 80%;
                        }

                        p {
                            font-size: 13px;
                            color: @bor_title_color1;
                            text-align: center;
                        }
                    }

                    .video:hover {
                        cursor: pointer;
                    }
                }

            }

            .arrow {
                transition: opacity 1s ease;
                opacity: 0;
                color: @bor_title_color1 ;
                position: absolute;
                top: 40%;

                i {
                    font-size: 30px;
                }
            }

            .arrow_left {
                left: 10px;
            }

            .arrow_right {
                right: 8px;
            }

        }

        .monitor_video:hover {
            .arrow {
                cursor: pointer;
                transition: opacity 1s ease;
                opacity: 1;
            }
        }
    }

    .monitor_right {
        padding: 3 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    div {
        position: relative;

        .bor_title {
            position: absolute;
            top: 20px;
            left: 50px;
            font-weight: bold;
            font-size: 15px;
            color: @bor_title_color1;
        }

        .video_title {
            top: 0 !important;
            left: 25px !important;
        }
    }
}

.bodyDraw {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background:rgba(18, 46, 89, 0.5);
    #drawer {
        position: absolute;
        transition: left 1s ease;
        top: 0;
        left: -200px;
        width: 200px;
        height: 100vh;
        background-color: rgba(18, 46, 89, 0.8);
        color: @bor_title_color1;

        .drawerItem {
            padding: 5px;
            text-align: left;
            border: 1px solid @border-Color1;
            margin: 10px 0 10px 0;
        }

        .drawerItem:hover {
            background-color: @border-Color1;
        }

        .drawerItem:hover {
            cursor: pointer;
        }

        .putAway {
            position: absolute;
            bottom: 0;
            width: 100%;
            text-align: center;
        }
    }
}


#drawerIcon {
    position: fixed;
    top: 5%;
    color: @bor_title_color1;
    display: none;

    i {
        font-size: 20px;
    }

    .transition-link {
        transition: opacity 0.3s ease-in-out;
        /* 过渡属性为 opacity，过渡时间为 0.3 秒，过渡效果为 ease-in-out */
    }
}

.row {
    margin: 0 !important;
}

.monitor_div1 {
    position: relative;
    margin: 5px;
    height: 28%;
    padding: 25px;
}

.echart_line {
    width: 100%;
    height: 100%;
}

.monitor_div1:hover {
    cursor: pointer;
}

.monitor_table {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    // border: 1px solid @border-Color1;

    table {
        width: 100%;
        color: @bor_title_color1;
        font-size: 10px;
        border: 1px solid @border-Color1;

        thead {
            position: sticky;
            top: 0;
            background: rgba(22, 54, 103, 1);
            border: 1px solid @border-Color1;

            tr {
                th {
                    text-align: center;
                }
            }
        }

        tbody {
            border: 1px solid @border-Color1;

            tr {
                td {
                    text-align: center;
                }
            }
        }
    }
}

.monitor_table:hover {
    overflow-y: auto;
}

// aMap info

.custom-input-card {
    width: 18rem;
}

.custom-input-card .btn:last-child {
    margin-left: 1rem;
}

// aMap info
.amap-info-sharp {
    display: none;
}

.amap-info-close {
    color: @border-Color1;
}

.amap-info-content {
    background: rgba(0, 0, 0, 0.5) url(../img/border/border1.png) 0 0 / 100% 100% no-repeat;
    color: @border-Color1;
}